FlightScript™ provides several scripting functions which you can access via AppleScript®. While the subject of scripting itself is beyond the scope of this manual, the examples given below can be used to build your scripts:
Obtaining a List
Executing the following script will return a list of colors
tell application “FLIGHTCHECK®”
activate
get colorlist
end tell
Getting the Current View
Executing the following script will return the current view for fonts:
tell application “FLIGHTCHECK®”
activate
get font view
end tell
Getting the Number of Problems
Executing the following script will return the number of problem images (using the currently selected view):
tell application “FLIGHTCHECK®”
activate
get image problems
end tell
Conditional Scripts
Executing the following conditional script will return a list of colors only if the current view is “Spot Colors”, set the current font view to All Fonts only if there are font problems, and will return a list of images only if there are image problems:
tell application “FLIGHTCHECK®”
activate
if (get color view) = (“Spot Colors”) then get color list
if (get font problems) > 0 then set font view to All Fonts